import request from '@/utils/request'

// 查询消息列表
export function listMessageContent(query) {
  return request({
    url: '/lxy/messageContent/list',
    method: 'get',
    params: query
  })
}

// 查询消息详细
export function getMessageContent(id) {
  return request({
    url: '/lxy/messageContent/' + id,
    method: 'get'
  })
}

// 新增消息
export function addMessageContent(data) {
  return request({
    url: '/lxy/messageContent',
    method: 'post',
    data: data
  })
}

// 修改消息
export function updateMessageContent(data) {
  return request({
    url: '/lxy/messageContent',
    method: 'put',
    data: data
  })
}

// 删除消息
export function delMessageContent(id) {
  return request({
    url: '/lxy/messageContent/' + id,
    method: 'delete'
  })
}
